<?php
if (isset($_POST['id'])){
    include 'config.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {}
    $id=$_POST['id'];
    $query=$mysqli->query("SELECT * FROM zhi_supplier where id='".$id."' limit 0,1 ");
    $data=array();
    $getUser=$query->fetch_assoc();
    $mysqli->close();
    echo json_encode($getUser);
}

